﻿<div class="modal hide" id="addEditModal">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">×</button>
        <h3>Изменение расписания: добавление премета</h3>
    </div>
    <div class="modal-body" style="max-height: 350px;">
        <form class="form-horizontal">    
            <div class="control-group">
                <label class="control-label" for="">Факультет</label>
                <div class="controls">
                    <div class="btn-group">
                        <select data-placeholder="Выберите факультет" class="span5" id="faculties" data-bind="options: faculties, optionsText: 'Name', optionsValue: 'Id', value: currentFacultyId">                            
                            <option></option>
                        </select>
                    </div>
                </div>
            </div> 
             <div class="control-group">
                <label class="control-label" for="">Курс</label>
                <div class="controls">
                    <div class="btn-group">
                        <select data-placeholder="Выберите курс" class="span5" id="courses" data-bind="options: courses, optionsText: 'Name', optionsValue: 'Id', value: currentCourseId">                            
                            <option></option>
                        </select>
                    </div>
                </div>
            </div>        
            <div class="control-group">
                <label class="control-label" for="">Дисциплина</label>
                <div class="controls">
                    <div class="btn-group">
                        <select data-placeholder="Выберите предмет" class="span5" id="tutorials" data-bind="options: tutorials, optionsText: 'Name', optionsValue: 'Id', value: addEditModal.tutorialId">                            
                            <option></option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="">Специальности</label>
                <div class="controls">
                    <div class="btn-group">
                        <select data-placeholder="Выберите специальности" class="span5" id="specialities" multiple data-bind="options: specialities, optionsText: 'Name', optionsValue: 'Id', selectedOptions: addEditModal.currentSpecialitiesId">                            
                            <option></option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="">Группы</label>
                <div class="controls">
                    <div class="btn-group">
                        <select data-placeholder="Выберите группы" class="span5" id="groups" multiple data-bind="options: groups, optionsText: 'Code', optionsValue: 'Id', selectedOptions: addEditModal.currentGroupsId">                            
                            <option></option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="optionsCheckbox">Тип предмета</label>
                <div class="controls">
                    <div class="btn-group">
                        <select data-placeholder="Выберите тип предмета" class="span5" id="tutorialTypes" data-bind="options: tutorialTypes, optionsText: 'Name', optionsValue: 'Id', value: addEditModal.tutorialTypeId">
                            <option></option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="optionsCheckbox">Аудитория</label>
                <div class="controls">
                    <div class="btn-group">
                        <input class="input-xlarge focused typeahead span1" id="auditorium" type="text" rel="tooltip" data-original-title="Введите номер аудитории" data-placement="right" data-bind="value: addEditModal.auditorium">
                    </div>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="optionsCheckbox">Преподаватель</label>
                <div class="controls">
                    <div class="btn-group">
                        <select data-placeholder="Выберите преподавателя" class="span5" id="lecturers" data-bind="options: lecturers, optionsText: 'fio', optionsValue: 'Id', value: addEditModal.lecturerId">                            
                            <option></option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="optionsCheckbox">Часов в неделю</label>
                <div class="controls">
                    <div class="btn-group">
                        <input class="input-xlarge focused typeahead numeric span1" id="hoursPerWeek" type="text" rel="tooltip" data-original-title="Введите максимальное количество часов в неделю для предмета" data-placement="right" data-bind="value: addEditModal.hoursPerWeek">                    
                    </div>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="optionsCheckbox">Число подгрупп</label>
                <div class="controls">
                    <div class="btn-group">
                        <input class="input-xlarge focused typeahead numeric span1" id="subGroupCount" type="text" rel="tooltip" data-original-title="Введите количество подгрупп" data-placement="right" data-bind="value: addEditModal.subGroupCount">                    
                    </div>
                </div>
            </div>
      </form>
    </div>
    <div class="modal-footer">
        <a href="#" class="btn" data-dismiss="modal">Закрыть</a> 
        <a href="#" class="btn" data-dismiss="modal" data-bind="click: addEditModal.saveAndClose">Сохранить и закрыть</a> 
        <a href="#" class="btn btn-primary" data-bind="click: addEditModal.save">Сохранить</a>
    </div>
</div>
